package com.example.demo.common.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;

import groovy.beans.Bindable;

public class User extends Model<User> {
    @TableId
	private String username;

    private String password;

    private Integer ac;

    private Integer wa;

    private String img;

    private Date createtime;

    private String vip;

    private String autograph;

    private String acceptProblem;

    private Integer rating;

    private String realname;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public Integer getAc() {
        return ac;
    }

    public void setAc(Integer ac) {
        this.ac = ac;
    }

    public Integer getWa() {
        return wa;
    }

    public void setWa(Integer wa) {
        this.wa = wa;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img == null ? null : img.trim();
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getVip() {
        return vip;
    }

    public void setVip(String vip) {
        this.vip = vip == null ? null : vip.trim();
    }

    public String getAutograph() {
        return autograph;
    }

    public void setAutograph(String autograph) {
        this.autograph = autograph == null ? null : autograph.trim();
    }

    public String getAcceptProblem() {
        return acceptProblem;
    }

    public void setAcceptProblem(String acceptProblem) {
        this.acceptProblem = acceptProblem == null ? null : acceptProblem.trim();
    }

    public Integer getRating() {
        return rating;
    }

    public void setRating(Integer rating) {
        this.rating = rating;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname == null ? null : realname.trim();
    }

	@Override
	protected Serializable pkVal() {
		// TODO Auto-generated method stub
		return username;
	}
}